﻿using System;
using System.Web.UI;

namespace BlueMarineWebClient
{
    public partial class redirect : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["mess"] != null)
            {
                string mess = Request.QueryString["mess"];
                switch (mess)
                {
                    case "registersuccess":
                        lblResult.Text = "Register Success";
                        lblContent.Text =
                            "Please check Your Email for Username & Password !!<br /><a href='/'>HomePage</a> - <a href='/Account/Login.aspx'>Log-In</a>";
                        break;
                    case "registerfail":
                        lblResult.Text = "Register FAIL";
                        lblContent.Text =
                            "Sorry for this inconvenience, Please try again !!<br /><a href='/Account/Register.aspx'>Register</a>";
                        break;
                }
            }
        }
    }
}